package com.dckj.auto.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author WangDong123
 * @since 2018-09-04
 */
@TableName("t_auth_menu")
public class AuthMenu extends Model<AuthMenu> {

    private static final long serialVersionUID = 1L;

    /**
     * 平台权限菜单id
     */
    @TableId("menu_id")
    private String menuId;
    /**
     * 所属父级id
     */
    @TableField("father_id")
    private String fatherId;
    /**
     * 菜单名称
     */
    private String name;
    /**
     * 菜单描述
     */
    private String describe;
    /**
     * 菜单URL
     */
    private String url;
    /**
     * 图标
     */
    private String icon;
    /**
     * 排序字段
     */
    private Integer num;
    /**
     * id
     */
    @TableField("authority_id")
    private Integer authorityId;
    /**
     * pid
     */
    @TableField("parent_id")
    private Integer parentId;
    /**
     * 菜单代码
     */
    private String code;
    /**
     * 是否展开
     */
    private String spread;
    /**
     * 菜单属性  1：后台  2：。。。
     */
    private Integer attribute;
    /**
     * 菜单类型 0：目录 1：菜单  2：按钮
     */
    private Integer type;
    /**
     * 菜单深度
     */
    private Integer level;
    private String time;
    private Integer checked;


    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    public String getFatherId() {
        return fatherId;
    }

    public void setFatherId(String fatherId) {
        this.fatherId = fatherId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getAuthorityId() {
        return authorityId;
    }

    public void setAuthorityId(Integer authorityId) {
        this.authorityId = authorityId;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getSpread() {
        return spread;
    }

    public void setSpread(String spread) {
        this.spread = spread;
    }

    public Integer getAttribute() {
        return attribute;
    }

    public void setAttribute(Integer attribute) {
        this.attribute = attribute;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public Integer getChecked() {
        return checked;
    }

    public void setChecked(Integer checked) {
        this.checked = checked;
    }

    @Override
    protected Serializable pkVal() {
        return this.menuId;
    }

    @Override
    public String toString() {
        return "AutoMenu{" +
        "menuId=" + menuId +
        ", fatherId=" + fatherId +
        ", name=" + name +
        ", describe=" + describe +
        ", url=" + url +
        ", icon=" + icon +
        ", num=" + num +
        ", authorityId=" + authorityId +
        ", parentId=" + parentId +
        ", code=" + code +
        ", spread=" + spread +
        ", attribute=" + attribute +
        ", type=" + type +
        ", level=" + level +
        ", time=" + time +
        ", checked=" + checked +
        "}";
    }
}
